package bulk_param.view;

import java.awt.BorderLayout;
import java.util.ArrayList;

import javax.swing.BoxLayout;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JTabbedPane;

import bulk_param.dao.SelectBoxOuverturePointDao;
import bulk_param.footer.header.Footer;
import bulk_param.footer.header.Header;

public class ZABPQ_All_Onglet_View extends JPanel{	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Header header;
	private Footer footer;
	
	private JPanel panelOpenPoint;
	private JTabbedPane onglets;
	private Open_Contact_Num_View open_Contact_Num_View;
	private Inactive_Contact_Num_View inactive_Contact_Num_View;
	private JPanel panelOpenZABPQ, panelInactiveZABPQ;
	
	//Liste des contenus combobox
	public ArrayList<String> listTarification;
	
	public SelectBoxOuverturePointDao selectBoxOuverturePointDao ;
	
	public ZABPQ_All_Onglet_View(){
		
	}
	
	public JPanel panelAllZABPQ(){		
		
		//Panel Open_Point
		panelOpenPoint = new JPanel();
		panelOpenPoint.setLayout(new BorderLayout());	
		
		
		//Création de notre conteneur d'onglets : Affiche les onglets à gauche de la fenêtre
	    onglets = new JTabbedPane(JTabbedPane.NORTH);
//	    onglets.setBackground(Color.getHSBColor(39,233,255));

	    open_Contact_Num_View = new Open_Contact_Num_View();
	    inactive_Contact_Num_View = new Inactive_Contact_Num_View();
	    panelOpenZABPQ = open_Contact_Num_View.panelOuverture();
	    panelInactiveZABPQ = inactive_Contact_Num_View.panelInactivation();
	    onglets.add("Ouverture Point", panelOpenZABPQ);
	    onglets.add("Inactivation Point", panelInactiveZABPQ);
        
        //Panel assemblage
        JPanel assemblage = new JPanel();
        assemblage.setLayout(new BoxLayout(assemblage, BoxLayout.Y_AXIS));
        assemblage.add(onglets);    
		
		//ZABPQ OPEN_CONTACT LAYOUT
        header = new Header();	
        footer = new Footer();
        
		panelOpenPoint.add(header.headerPanel,BorderLayout.NORTH);
		panelOpenPoint.add(assemblage,BorderLayout.CENTER);
		panelOpenPoint.add(footer.footerPanel,BorderLayout.SOUTH);
			
		return panelOpenPoint;
						
	}		
}
